<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: 'http://lontoo.com.cn/index/index/home?visiter_id=&visiter_name=&avatar=&business_id=15&groupid=0'
			}
		},
		onLoad() {
			
			const that = this
			setTimeout(() => {
				var currentWebview = this.$scope.$getAppWebview()
				var wv = currentWebview.children()[0]
				wv.onclose = () => {
					uni.switchTab({
						url: '/pages/homePage/homePage'
					});
				}
				wv.evalJS(`
							$('.fanhui').css({'line-height': '85px'});
							    $('.fanhui').attr('href', 'javascript:plus.webview.currentWebview().close()');
							    $('.header').css({height: '65px','line-height': '65px'});
							`)
			}, 1000)
			
		}
	}
</script>

<style>
</style>
